/**$Licence:
 *  Copyright (C) 2008 - 2012 www.java1995.com . All rights reserved.
 *
 *  Use this however/wherever you like, just don't blame me if it breaks anything.
 *
 */

package com.blazemina.config;

/**
 * @author JackChu
 * @version 1.0.0 2012-2-6 下午10:19:37
 */
public class IoService {
	
	/**
	 * 处理IO的线程数
	 * The default pool size, when no size is provided. 
	 */
	private int socketThreads = Runtime.getRuntime().availableProcessors();
	
	private ServiceAcceptor serviceAcceptor;

	/**
	 * socketThreads
	 *
	 * @return  the socketThreads
	 */
	
	public int getSocketThreads() {
		return socketThreads;
	}

	/**
	 * socketThreads
	 *
	 * @param   socketThreads    the socketThreads to set
	 */
	
	public void setSocketThreads(int socketThreads) {
		this.socketThreads = socketThreads;
	}

	/**
	 * serviceAcceptor
	 *
	 * @return  the serviceAcceptor
	 */
	
	public ServiceAcceptor getServiceAcceptor() {
		return serviceAcceptor;
	}

	/**
	 * serviceAcceptor
	 *
	 * @param   serviceAcceptor    the serviceAcceptor to set
	 */
	
	public void setServiceAcceptor(ServiceAcceptor serviceAcceptor) {
		this.serviceAcceptor = serviceAcceptor;
	}

}
